@layout("/common/_container.html",{js:["/assets/common/module/ueditor/ueditor.config.js","/assets/common/module/ueditor/ueditor.all.js","/assets/modular/recy/commandOrder/commandOrder_add.js","/assets/common/libs/rapid-validator/prototype_for_validation.js","/assets/common/libs/rapid-validator/validation_cn.js","/assets/common/libs/rapid-validator/tooltips.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">添加远程命令</span>
</div>

<div class="layui-container" style="">
    <form id="commandOrderForm" lay-filter="commandOrderForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
        <input name="id" type="hidden"/>
        <div class='layui-form-item'>
            <div class="layui-inline">
                <label class="layui-form-label">回收箱id</label>
                <div class="layui-input-block">
                    <select name="binsId" id="binsId" lay-filter="bins_selected" class="validate-one-required">
                        <option value="">请选择回收箱</option>
                    @for(bins in binsList){
                        <option value="${bins.id}">${bins.binsNo}</option>
                    @}
                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">分类id</label>
                <div class="layui-input-block">
<!--                    <input style="width:150px" id="wasteTypeId" name="wasteTypeId" placeholder="分类id" type="text" class="layui-input   required" />-->
                    <select name="wasteTypeId" id="wasteTypeId" ></select>
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">命令标识</label>
                <div class="layui-input-block">
                    <select id="commandTag" name="commandTag">
                        <option value="weight">称重</option>
                        <option value="sterilize_open">消杀开</option>
                        <option value="sterilize_close">消杀关</option>
                    </select>
                </div>
            </div>
            <!--<div class="layui-inline">
                <label class="layui-form-label">是否已读</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="isRead" name="isRead" placeholder="是否已读" type="text" class="layui-input   required" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">是否执行结束</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="isFinish" name="isFinish" placeholder="是否执行结束" type="text" class="layui-input   required" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">创建时间</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="createTime" name="createTime" placeholder="创建时间" type="text" class="layui-input   required" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">返回信息</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="returnMsg" name="returnMsg" placeholder="返回信息" type="text" class="layui-input   required" />
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label">发送者</label>
                <div class="layui-input-block">
                    <input style="width:150px" id="createUserId" name="createUserId" placeholder="发送者" type="text" class="layui-input   required" />
                </div>
            </div>-->
        </div>
        <div class="layui-form-item text-right">
            <button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
            <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog" id="backupPage">返回</button>
        </div>
    </form>
</div>

@}